# 10 编写一个函数cacluate, 可以实现2个数的运算(加,减 乘,除)

def cacluate(n1, method, n2):
    if method == '+':
        return n1 + n2
    if method == '-':
        return n1 - n2
    if method == '*':
        return n1*n2
    if method == '/':
        return n1/n2

print(cacluate(1,'+',1))


